import path from 'path';
import { defineConfig } from "vite";
import vue from '@vitejs/plugin-vue'

console.log('node_env ', process.env.NODE_ENV)

export default defineConfig({
    base: './',
    server: {
        port: 9999,
        open: false
    },
    resolve: {
        alias: {
            '@components': path.resolve(__dirname, './src/components/'),
            '@api': path.resolve(__dirname, './src/api/'),
            '@store': path.resolve(__dirname, './src/store/')
        }
    },
    build : {
        outDir : 'dist',
        assetsDir : 'assets',
        sourcemap : true
    },
    plugins: [vue()]
})
